import {reqFindHeadCategory}  from  '@/api/home'
export default {
  state () {
    return {
      list:[]
    }
  },
  mutations: {
      setList(state,list){
        state.list=list
      }
  },
  actions: {
    async getCateList({commit}){
      const  res=await reqFindHeadCategory()
      console.log(res,888);
      // if(res.code==1){
        commit('setList',res.result)
      // }
    }
  },
  getters: {},
  namespaced: true
}